import { PromiseData } from '@/@types/request'
import request, { OperateData } from '@/utils/request'
import { TableParams, TableList, HospitalParams } from './data'

// 获取页面数据
export const getTableList = (data: TableParams): Promise<PromiseData<TableList>> =>
  request.post('/dataEscalationExamine/searchHospitalData', data)

// 上报省平台
export const escalationPlatform = (data: { ids: number[] }): Promise<PromiseData<{ reportTime: string }>> =>
  request.post('/dataEscalationExamine/escalationPlatform', data)

// 查询医院加入时间
export const getHospitalApplyData = (data: {
  hospitalCode: number
  dataReportYear: string
  dataReportQuarter: string
}): Promise<PromiseData<HospitalParams>> => request.post('/TimeQuarter/searchHospitalApplyData', data)
